//@ts-ignore
import axios from '../utils/axios';
export default {
  fixRole(id:number, params:object):Promise<any>{
    return axios.put('/role/'+id, params);
  },
  permRole(params:object):Promise<any>{
    return axios.get('/role/perm',{ params });
  },
  addRole(params:object):Promise<any>{
    return axios.post('/role', params);
  },
  delRole(id:number):Promise<any>{
    return axios.delete('/role/'+id);
  },
  infoRole(id:number):Promise<any>{
    return axios.get('/role/'+id);
  },
  pageRole(params:object):Promise<any>{
    return axios.get('/role',{ params });
  }
}